package com.zs.toolbox.web2j.system.core.service;

import com.zs.toolbox.web2j.common.response.WtBaseResponse;
import com.zs.toolbox.web2j.system.core.entity.WtUserOpenEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zs.toolbox.web2j.system.core.response.WtOpenUserLoginResponse;

/**
 * <p>
 * 用户-第三方登陆信息 服务类
 * </p>
 *
 * @author eric.zhang
 * @since 2018-10-08
 */
public interface WtUserOpenService extends IService<WtUserOpenEntity> {

    WtUserOpenEntity selectByTypeAndOpenIdOrUnionId(String openType, String openId, String unionId);

    WtBaseResponse<WtOpenUserLoginResponse> wxLogin(String code);

    void bind(String openType, String openId, Long userId);

    void unbind(String openType, String openId, Long userId);

    WtBaseResponse<WtOpenUserLoginResponse> qqLogin(String code, String state);
}
